package com.example.m2m.service;

import com.example.m2m.pojo.Role;
import com.example.m2m.pojo.User;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 宋伟宁
 * @Date 2023/9/7
 * @Version 1.0
 **/
public interface UserRoleService {


    PageInfo<User> users(String offset);

    User login(String name,String pwd);

    List<Role> findRolesByUser(int id);

    boolean saveUser(User user, String[] ids);

    int addUserRole(int uid, String[] ids);

    List<Role> roles();

    boolean delete(String ids);

    User findUser(String id);
}
